<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>猜数字案例</title>

    <script>
        var b = prompt('请输入你的数字0~10');
        var c = prompt('请输入你的数字0~10');
        var d = prompt('请输入你的数字0~10');
        var a = Math.ceil((Math.random() * 10));
        console.log(a);
        if (b == a || c == a || d == a) {
            alert('猜对了');
        } else {
            alert('猜错了');
        }
    </script>



</head>

<body>

</body>

</html>